#-------------------------------------HEADING------------------------------------------
# Name: Michael Simon
# Project Name:RocketShip
# Date Started: 9/26/12
# Date Finished: -
# Version: 1

#--------------------------------------CODE------------------------------------------
from shapes import *



def rocketship(t, size=1):
	t.delay = 0.008
	rect(t, size*40, size*100, 0)
	move(t, size*0, size*100)
	sss_tri(t, size*40, size*37.5, size*37.5, 0)
	move(t, size*0, size*-100)
	move(t, size*0, size*10)
	square(t, size*10, 180)
	move(t, size*-10, size*-10)
	move(t, size*20, size*0)
	sss_tri(t, size*20, size*40, size*40, 180)
	move(t, size*30, size*0)
	square(t, size*10, size*0)
	move(t, size*10, size*0)
	sss_tri(t, size*20, size*40, size*40, 180)
	move(t, size*-40, size*0)
	rect(t, size*20, size*-45, size*0)
	move(t, size*-10, size*40)
	para(t, size*-35, size*-20, 40, -90)
	move(t, size*40, size*0)
	para(t, size*35, size*20, -40, 90)
	move(t, size*-30, size*30)
	square(t, size*20, size*0)
	move(t, size*0, size*-10)
	line(t, size*0, size*-20)
	line(t, size*20, size*0)
	line(t, size*0, size*20)
	move(t, size*-20, size*-20)
	move(t, size*-10, size*-40)
	move(t, size*2.5, size*2.5)
	t.delay = 0
	arc(t, size*1.25, 360, 0)
	t.delay = 0.02
	move(t, size*-2.5, size*-2.5)
	move(t, size*40, size*0)
	move(t, size*-2.5, size*2.5)
	t.delay = 0
	arc(t, size*1.25, 360, 180)
	t.delay = 0.02
	move(t, size*2.5, size*-2.5)
	move(t, size*0, size*100)
	move(t, size*-2.5, size*-2.5)
	t.delay = 0
	arc(t, size*1.25, 360, 180)
	t.delay = 0.02
	move(t, size*2.5, size*2.5)
	move(t, size*-40, size*0)
	move(t, size*2.5, size*-2.5)
	t.delay = 0
	arc(t, size*1.25, 360, 90)
	t.delay = 0.02
	move(t, size*-2.5, size*2.5)
	move(t, size*0, size*-100)
	move(t, size*15, size*7.5)
	square(t, size*10, size*0)
	move(t, size*-15, size*-7.5)

def space(t, size=1):
	move(t, 300, 600)
	star(t, 5, size*25.0, 0)
	move(t, 120, -40)
	star(t, 5, size*20.0, 30)
	move(t, 60, -90)
	star(t, 5, size*30.0, 45)
	move(t, 150, 100)
	star(t, 5, size*15.0, 34)
	move(t, -1200, 0)
	star(t, 5, size*25.0, 0)
	move(t, 300, 0)
	star(t, 5, size*22.5, 12)
	move(t, 150, 0)
	star(t, 5, size*17.5, 95)
	move(t, -225, -100)
	star(t, 5, size*25.0, 59)
	move(t, -100, 100)
	star(t, 5, size*7.5, 40)
	move(t, -200, -500)
	star(t, 5, size*150, 20)
	move(t, 1200, 0)
	star(t, 5, size*30, 41)
	move(t, 100, 300)
	star(t, 5, size*10, 21)
	move(t, -400, 20)
	star(t, 5, size*17.5, 90)
	move(t, 50, -400)
	star(t, 5, size*50, -30)
	move(t, -800, 300)
	star(t, 5, size*40, 195)
	move(t, 200, 0)
	star(t, 5, size*20, 5)
	move(t, 475, -450)

def letters(t, size=1):
	line(t, size*0, size*40)
	move(t, size*0, size*-10)
	arc(t, size*10, 195, 90)
	move(t, size*0, size*-10)
	line(t, size*15, size*-20)
	move(t, size*30, size*20)
	arc(t, size*20, 360, 0)
	move(t, size*50, size*0)
	arc(t, size*18, 230, 250)
	move(t, size*20, size*-18)
	line(t, size*0, size*40)
	move(t, size*0, size*-20)
	line(t, size*20, size*20)
	move(t, size*-20, size*-20)
	line(t, size*20, size*-20)
	move(t, size*-20, size*20)
	move(t, size*40, size*-20)
	line(t, size*0, size*40)
	line(t, size*20, size*0)
	move(t, size*-20, size*-20)
	line(t, size*20, size*0)
	move(t, size*-20, size*-20)
	line(t, size*20, size*0)
	move(t, size*30, size*0)
	line(t, size*0, size*40)
	line(t, size*12.5, size*0)
	line(t, size*-25, size*0)
	move(t, size*42.5, size*-40)
	move(t, size*0, size*30)
	arc(t, size*12, 230, 255)
	move(t, size*0, size*-24)
	arc(t, size*12, 235, 105)
	move(t, size*20, size*-4)
	line(t, size*0, size*40)
	move(t, size*0, size*-20)
	line(t, size*20, size*0)
	line(t, size*0, size*-20)
	line(t, size*0, size*40)
	move(t, size*20, size*-40)
	line(t, size*0, size*40)
	move(t, size*0, size*-40)
	move(t, size*20, size*0)
	line(t, size*0, size*40)
	move(t, size*0, size*-10)
	arc(t, size*10, 195, 90)
	
def drawing(t, size=1):
	rocketship(t, size*1)
	space(t, size*1)
	letters(t, size*1)

def dead_turtle(t, size):
	t.delay = 0.007
	t.pu()
	t.r = 12
	move(t, 0.01, 0)
	t.r = 20
	move(t, 0.01, 0)
	t.r = 25
	move(t, 0.01, 0)
	t.r = 30
	move(t, 0.01, 0)
	t.r = 35
	move(t, 0.01, 0)
	t.r = 40
	move(t, 0.01, 0)
	t.r = 45
	move(t, 0.01, 0)
	t.r = 50
	move(t, 0.01, 0)
	t.r = 55
	move(t, 0.01, 0)
	t.r = 60
	move(t, 0.01, 0)
	t.r = 65
	move(t, 0.01, 0)
	t.r = 70
	move(t, 0.01, 0)
	t.r = 75
	move(t, 0.01, 0)
	t.r = 80
	move(t, 0.01, 0)
	t.r = 85
	move(t, 0.01, 0)
	t.r = 90
	move(t, 0.01, 0)
	t.r = 95
	move(t, 0.01, 0)
	t.r = 100
	move(t, 0.01, 0)
	t.r = 105
	move(t, 0.01, 0)
	t.r = 110
	move(t, 0.01, 0)
	t.r = 115
	move(t, 0.01, 0)
	t.r = 120
	move(t, 0.01, 0)
	t.r = 125
	move(t, 0.01, 0)
	t.r = 130
	move(t, 0.01, 0)
	t.r = 135
	move(t, 0.01, 0)
	t.r = 140
	move(t, 0.01, 0)
	t.r = 145
	move(t, 0.01, 0)
	t.r = 150
	move(t, 0.01, 0)
	t.r = 155
	move(t, 0.01, 0)
	t.r = 160
	move(t, 0.01, 0)
	t.r = 165
	move(t, 0.01, 0)
	t.r = 170
	move(t, 0.01, 0)
	t.r = 175
	move(t, 0.01, 0)
	t.r = 180
	move(t, 0.01, 0)
	t.r = 185
	move(t, 0.01, 0)
	t.r = 190
	move(t, 0.01, 0)
	t.r = 195
	move(t, 0.01, 0)
	t.r = 200
	move(t, 0.01, 0)
	t.r = 205
	move(t, 0.01, 0)
	t.r = 210
	move(t, 0.01, 0)
	t.r = 215
	move(t, 0.01, 0)
	t.r = 220
	move(t, 0.01, 0)
	t.r = 225
	move(t, 0.01, 0)
	t.r = 230
	move(t, 0.01, 0)
	t.r = 235
	move(t, 0.01, 0)
	t.r = 240
	move(t, 0.01, 0)
	t.r = 245
	move(t, 0.01, 0)
	t.r = 250
	move(t, 0.01, 0)
	t.r = 255
	move(t, 0.01, 0)
	t.r = 260
	move(t, 0.01, 0)
	t.r = 265
	move(t, 0.01, 0)
	t.r = 270
	move(t, 0.01, 0)
	t.r = 275
	move(t, 0.01, 0)
	t.r = 280
	move(t, 0.01, 0)
	t.r = 285
	move(t, 0.01, 0)
	t.r = 290
	move(t, 0.01, 0)
	t.r = 295
	move(t, 0.01, 0)
	t.r = 300
	move(t, 0.01, 0)
	t.r = 305
	move(t, 0.01, 0)
	t.r = 300
	move(t, 0.01, 0)
	t.r = 295
	move(t, 0.01, 0)
	t.r = 290
	move(t, 0.01, 0)
	t.r = 285
	move(t, 0.01, 0)
	t.r = 280
	move(t, 0.01, 0)
	t.r = 275
	move(t, 0.01, 0)
	t.r = 260
	move(t, 0.01, 0)
	t.r = 265
	move(t, 0.01, 0)
	t.r = 270
	move(t, 0.01, 0)
	t.r = 275
	move(t, 0.01, 0)
	t.r = 280
	move(t, 0.01, 0)
	t.r = 285
	move(t, 0.01, 0)
	t.r = 290
	move(t, 0.01, 0)
	t.r = 295
	move(t, 0.01, 0)
	t.r = 300
	move(t, 0.01, 0)
	t.r = 305
	move(t, 0.01, 0)
	t.r = 310
	move(t, 0.01, 0)
	t.r = 315
	move(t, 0.01, 0)
	t.r = 320
	move(t, 0.01, 0)
	t.r = 325
	move(t, 0.01, 0)
	t.r = 330
	move(t, 0.01, 0)
	t.r = 335
	move(t, 0.01, 0)
	t.r = 340
	move(t, 0.01, 0)
	t.r = 345
	move(t, 0.01, 0)
	t.die()
		
def flowership(t, size=100, pedals=5):
	for i in range(8):
		rocketship(t, size=1)
		t.rt(360/pedals)

def stickMan(t, size=100, rotate=0):
	t.delay = 0
	t.lt(rotate)
	arc(t, size*.75, 360, 0)
	move(t, 0, size*-.75)
	line(t, 0, size*-2.5)
	line(t, size*-.75, size*-1)
	move(t, size*.75, size*1)
	line(t, size*.75, size*-1)
	move(t, size*-.75, size*1)
	move(t, 0, size*1.75)
	line(t, size*-.75, size*-1)
	move(t, size*.75, size*1)
	line(t, size*.75, size*-1)
	move(t, size*-.75, size*1)
	move(t, 0, size*.75)
	t.rt(rotate)